package test;

import interfaces.AlarmServerInterface;
import server.simon.AlarmClientCallbackImpl;
import de.root1.simon.Lookup;
import de.root1.simon.Simon;

public class ReCreateCache {

	public static void main(String[] args) {
		
		try {
		
		AlarmClientCallbackImpl clientCallbackImpl = new AlarmClientCallbackImpl();

		// 'lookup' the server object
		Lookup nameLookup;
		
			nameLookup = Simon.createNameLookup("192.168.0.200", 22222);
		
		AlarmServerInterface server = (AlarmServerInterface) nameLookup
				.lookup("server");
		
		server.recreateCache();
		
} catch (Exception e) {
			
			e.printStackTrace();
		}
	}
}
